﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2024-09-17 22:30
    /// 描 述：实体类
    /// </summary>
    [Table("storeOrderMaster")]
    public class StoreOrderMasterEntity : BaseEntity
    {
        /// <summary>
        /// 订单编号 yyyymmddnnnnnnnn
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? order_sn { get; set; }
        /// <summary>
        /// 下单人ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? customer_id { get; set; }
        /// <summary>
        /// 收货人姓名
        /// </summary>
        /// <returns></returns>
        public string shipping_user { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        /// <returns></returns>
        public string province { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        /// <returns></returns>
        public string city { get; set; }
        /// <summary>
        /// 区
        /// </summary>
        /// <returns></returns>
        public string district { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        /// <returns></returns>
        public string address { get; set; }
        /// <summary>
        /// 订单金额
        /// </summary>
        /// <returns></returns>
        public float? order_money { get; set; }
        /// <summary>
        /// 下单时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? create_time { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? modified_time { get; set; }
        /// <summary>
        /// 购买数量
        /// </summary>
        /// <returns></returns>
        public int? product_cnt { get; set; }
        /// <summary>
        /// 商品单价
        /// </summary>
        /// <returns></returns>
        public float? goods_price { get; set; }
        /// <summary>
        /// 购物车json
        /// </summary>
        /// <returns></returns>
        public string carjson { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        /// <returns></returns>
        public string remark { get; set; }
        /// <summary>
        /// 实际支付金额
        /// </summary>
        /// <returns></returns>
        public float? pay_money { get; set; }
    }
}
